<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>在线鲜花销售网</title>
<meta name="keywords" content="鲜花，鲜花速递，鲜花网，花店，开业花篮" />
<meta name="description" content="各种鲜花礼品，应有尽有" />
<link href="images/xicon.png" rel="shortcut icon" type="image/x-icon" />
<link href="css/login.css" rel="stylesheet" type="text/css" />
<link href="css/footer.css" rel="stylesheet" type="text/css" />
<style>

</style>
</head>

<body>
<header>
	<a href="index.html" target="_blank"><img src="images/logo.png" alt="logo" title="点击进入“花”点心思鲜花网" /></a>
</header>

<article>
	<div class="loginarea">
    	<div class="item">
        	<h1>“花”点心思会员 <a href="register.html">立即注册</a></h1>
        </div>
        
        <div class="item item-border">
        	<label for="account" class="login_label"></label>
            <input type="text" class="ipt" value="" name="account" id="account" placeholder="邮箱/用户名/已验证的手机"/>
        </div>
        
        <div class="item item-border">
        	<label for="pwd" class="login_label pwd_label"></label>
            <input type="password" maxlength="18" value="" class="ipt" name="pwd" id="pwd" placeholder="密码"/>
        </div>
        
        <div class="item item2">
        	<input type="checkbox" id="auto">
        	<label for="auto">自动登录</label>
          	<a href="#">忘记密码</a>
        </div>
        
        <div class="item">
          	<a href="#" class="btn_img"  onClick = "login()">登&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;录</a>
        </div>
        
        
    </div>
</article>
<footer>
	<div class="fservice">
		<ul class="clearfix">
			<li>
				<span>
					<img src="images/f01.png" >
					<a href="#">热诚服务</a>
				</span>
			</li>
			<li><span><img src="images/f02.png" ><a href="#">客户信赖</a></span></li>
			<li><span><img src="images/f03.png" ><a href="#">时尚原创花艺</a></span></li>
			<li><span><img src="images/f04.png" ><a href="#">订单实拍</a></span></li>
			<li><span><img src="images/f05.png" ><a href="#">优惠多多</a></span></li>
			<li><span><img src="images/f06.png" ><a href="#">1小时配送</a></span></li>
			<li><span><img src="images/f07.png" ><a href="#">售后服务</a></span></li>
		</ul>
	</div>
	
	<div class="foot_link">
        <a href="#">关于我们</a> <span> | </span>
        <a href="#">联系我们</a> <span> | </span>
        <a href="#">招聘广告</a> <span> | </span>
        <a href="#">友情链接</a>
    </div>
    <p>CopyRight &copy; 2021 <a class="copy" href="#" target="_blank">点心思在线鲜花销售系统</a> All Rights Reserverd</p>
    <p>电话：0734-7572842 湘ICP备12345678号-1</p>
</footer>

<script type="text/javascript" src="js/jquery-3.4.1.min.js"></script>
<script >
		function login(){
			let account = $("#account").val();
			let pwd = $("#pwd").val();
			
			if( account == null || pwd == null || account == "" || pwd == "" ){
				return;
			}
			$.post("member",{
				op: 'login',
				account: account,
				pwd: pwd
			},function(data){
				if(data == "0"){
					alert("用户名或密码错误，请重新尝试");
				}else{
					location.href = "index.html";
				}
			},"text");
		}
</script>
</body>
</html>
